package cn.tedu.mall.order.mapper;

import cn.tedu.mall.pojo.order.dto.OrderListTimeDTO;
import cn.tedu.mall.pojo.order.model.OmsOrder;
import cn.tedu.mall.pojo.order.vo.OrderListVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OmsOrderMapper {
    int insertOrder(OmsOrder omsOrder);

    //查询当前登录用户指定时间内全部订单信息
    List<OrderListVO> selectOrdersBetweenTimes(OrderListTimeDTO orderListTimeDTO);

    //利用动态sql语句，实现对订单中指定字段修改
    int updateOrderById(OmsOrder omsOrder);
}
